<?
if(!isset($state['record_id']))throw new Exception('No record selected');
if(!isset($param[0]))throw new Exception('Not enough parameter');

$func=$param[0];
if(isset($param[1])){
	$record->$func($param[1]);
}else{
	$record->$func();
}
